package net.osweb.crm.modules.customer.bean;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * <p>
 * Title:Expresscp.java
 * </p>
 * <p>
 * Description:快运公司表
 * </p>
 * <p>
 * Copyright: Copyright (c) 2010
 * </p>
 * <p>
 * Company:
 * </p>
 * 
 * @author <a href="jincool.cao@126.com">jincao</a>
 * @version: 1.0
 * @time:2011年8月5日14:56:24
 */
@Entity
@Table(name = "CUSTOMER_EXPRESS_COMPANY")
public class ExpressCompany implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2724981776518593002L;
	private Integer id;
	private Integer userid;
	private String name;
	private String phone;
	private String fax;
	private String avgcharge;
	private Timestamp createtime;
	private Integer isavailability;
	private Integer status;
	private Timestamp userviewtime;
	private String comment;

	// Constructors

	/** default constructor */
	public ExpressCompany() {
	}

	/** full constructor */
	public ExpressCompany(Integer userid, String name, String phone, String fax,
			String avgcharge, Timestamp createtime, Integer isavailability,
			Integer status, Timestamp userviewtime, String comment) {
		this.userid = userid;
		this.name = name;
		this.phone = phone;
		this.fax = fax;
		this.avgcharge = avgcharge;
		this.createtime = createtime;
		this.isavailability = isavailability;
		this.status = status;
		this.userviewtime = userviewtime;
		this.comment = comment;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "userid")
	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	@Column(name = "name")
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "phone")
	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Column(name = "fax")
	public String getFax() {
		return this.fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	@Column(name = "avgcharge")
	public String getAvgcharge() {
		return this.avgcharge;
	}

	public void setAvgcharge(String avgcharge) {
		this.avgcharge = avgcharge;
	}

	@Column(name = "createtime", length = 19)
	public Timestamp getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Timestamp createtime) {
		this.createtime = createtime;
	}

	@Column(name = "isavailability")
	public Integer getIsavailability() {
		return this.isavailability;
	}

	public void setIsavailability(Integer isavailability) {
		this.isavailability = isavailability;
	}

	@Column(name = "status")
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name = "userviewtime", length = 19)
	public Timestamp getUserviewtime() {
		return this.userviewtime;
	}

	public void setUserviewtime(Timestamp userviewtime) {
		this.userviewtime = userviewtime;
	}

	@Column(name = "comment")
	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

}